package com.mornd.gulimall.apis.coupon.to;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Getter
@Setter
public class MemberPriceTo {

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空")
    @Min(0)
    private Long id;
    /**
     * 名称
     */
    @NotBlank
    private String name;
    /**
     * 价钱
     */
    @NotNull(message = "会员价不能为空")
    @Min(0)
    private BigDecimal price;

}
